package com.example.pufang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pufang.pojo.House;
import com.example.pufang.vo.HouseAdminListVo;
import com.example.pufang.vo.HouseListVo;
import com.example.pufang.vo.LoginLogVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HouseMapper extends BaseMapper<House> {

    public List<HouseListVo> selectCollectList(Integer userId, Integer start, Integer limit);

    public List<HouseListVo> selectViewHistoryList(Integer userId, Integer start, Integer limit);


    List<HouseAdminListVo> getListByPage(Integer start, Integer limit, String searchName, String searchRealName,
                                         String searchPhone);


    long count(String searchName, String searchRealName, String searchPhone);

}
